package com.deepseek.project.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * author: hulei
 * deepSeek上下文历史记录保留实体
 */
@Data
@TableName("talk_info_deepseek_history")
public class TalkInfoDeepSeekHistory {

    @TableId(type = IdType.AUTO)
    private Integer id; // 主键

    private Integer talkInfoId; // 对话框id

    private String content; // 单条对话内容，JSON格式保存

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime; // 创建时间
}
